package snake;

import java.io.Serializable;
import java.util.LinkedList;

import Greedy_Snake_Map.MMap;

public class Snake_body implements Serializable{
	public Snake_Point head;
	public int dirction;
	public boolean died=false;
	public LinkedList<Snake_Point> body;
	public Snake_body()
	{
		
		body=new LinkedList<Snake_Point>();
		Init();
		
	}
	public void Init()
	{
		body.clear();
		this.died=false;
		head=new Snake_Point(0,0);
		head.x=MMap.get_x()/2;
		head.y=MMap.get_y()/2;
		body.add(head);
		body.add(head);
		body.add(head);
	}
	public void clear()
	{
		body.clear();
	}
	public LinkedList<Snake_Point> get_body()
	{
		return body;
	}
	
}
